/**
 * 数据采集Json类型 api 封装
 *
 * @Author:    dc
 * @Date:      2024-08-06 09:12:15
 * @Copyright  1.0
 */
import { getRequest, postRequest } from '/@/lib/axios';

export const apiJsonApi = {

	/**
	 * 分页查询  @author  dc
	 */
	queryPage: (param) => {
		return postRequest('/apiJdbc/queryPage', param);
	},

	/**
	 * 增加  @author  dc
	 */
	add: (param) => {
		return postRequest('/apiJdbc/add', param);
	},

	/**
	 * 修改  @author  dc
	 */
	update: (param) => {
		return postRequest('/apiJdbc/update', param);
	},


	/**
	 * 删除  @author  dc
	 */
	delete: (id) => {
		return getRequest(`/apiJdbc/delete/${id}`);
	},

	/**
	 * 批量删除  @author  dc
	 */
	batchDelete: (idList) => {
		return postRequest('/apiJdbc/batchDelete', idList);
	},

};
